//
//  AboGameCenterLogin.h
//  EyuGameSDK
//
//  Created by 李长春 on 2022/5/12.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

//此类 改为核心登录类  处理登陆问题

@interface AboGameCenterLogin : NSObject

typedef void (^LoginSuccessBlock)(NSDictionary *success);
typedef void (^LoginFailureBlock)(NSError *error);

typedef NS_ENUM(NSInteger, bindType) {
    facebook = 1,
    google,
    apple
};
+(instancetype)userAccountManager;

//登录入口
-(void)StartSiginServiceActionSuccess:(LoginSuccessBlock)eyuSuccess eyuFail:(LoginFailureBlock)eyuFail;


//游客登录
-(void)SignInWithGuest:(LoginSuccessBlock)eyuSuccess eyuFail:(LoginFailureBlock)eyuFail;

//facebook登录
-(void)facebookLoginWithVC:(UIViewController*)viewController EyuSuccess:(LoginSuccessBlock)eyuSuccess eyuFail:(LoginFailureBlock)eyuFail;


//苹果登录
-(void)SignInWithApple:(LoginSuccessBlock)eyuSuccess eyuFail:(LoginFailureBlock)eyuFail;


//gamecenter登录
//有坑 用户在设置里退出登录之后  在APP内执行登录 会有可能弹不出登录框 直接显示用户取消
//此时用户在设置里登录完成  重启APP 点击登录即可解决
-(void)gameCenterWithVC:(UIViewController*)superviewController EyuSuccess:(LoginSuccessBlock)eyuSuccess eyuFail:(LoginFailureBlock)eyuFail;


//绑定
-(void)BindOtherSignMethodWithType:(bindType)type VC:(UIViewController*)viewController Success:(LoginSuccessBlock)eyuSuccess eyuFail:(LoginFailureBlock)eyuFail;

//解绑
-(void)UnBindWithType:(bindType)type VC:(UIViewController*)viewController Success:(LoginSuccessBlock)eyuSuccess eyuFail:(LoginFailureBlock)eyuFail;

@end
NS_ASSUME_NONNULL_END
